home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)P
/
(A)P1.ADF
/
life
/
POSTER
< prev
next >
Wrap
Text File
|
1987-05-25
|
2KB
|
38 lines
Article 3851 of net.micro.amiga:
Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site well.UUCP
Path: well!ptsfa!lll-lcc!lll-crg!nike!oliveb!glacier!navajo!rokicki
From: rokicki@navajo.STANFORD.EDU (Tomas Rokicki)
Newsgroups: net.micro.amiga
Subject: Direct blitter access
Message-ID: <780@navajo.STANFORD.EDU>
Date: 7 Aug 86 07:48:02 GMT
Date-Received: 8 Aug 86 10:16:24 GMT
Organization: Stanford University
Lines: 450
[ Blitter away your life ]
Here's some code I wrote to access and test the blitter.
The blit routines are isolated in a short file; the test
routines, which execute John Conway's cellular automata
game of LIFE, follow. Read the comments for more information.
About the game of LIFE: This program executes LIFE in a
318 by 188 display at 19.8 generations per second.
It starts with an `r' pentimino in the center of the screen,
and adds a cell at a random location for each generation.
To run, just type life. With no arguments, it runs in one
bit plane; otherwise, the argument is the number of bit
planes to use. (The top bit plane is the most recent
generation; the next is the next most recent generation, etc.)
To exit (and this is a kludge), move the mouse to the left
of the screen and slowly drag it around the vertical center
(you need to hit coordinates (0,100) exactly).
The program is entertaining if unusable; if anyone adds
user interaction, please let me know.
The following are the four files, separated by ------cut here------.
They compile under Manx 3.20; simple mods for Lattice.